<?php
class XmlTool{
	static function ADDUTF8BOM($path){ 
		$str = file_get_contents($path);
		if(!(substr($str, 0, 3) == pack('CCC', 239, 187, 191))) {
			$string = pack('CCC',239,187,191).$str;
			file_put_contents($path,$string);
		}
	}
}
?>
